package com.liu.system.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liu.system.manage.domain.DMenu;
import com.liu.system.manage.domain.Option;
import com.liu.system.manage.domain.TreeNode;

import java.util.List;

public interface IMenuService {


    Page<DMenu> queryUserForPage(int page, int limit, String query);

    /**
     * 更新菜单
     * @param menu
     * @return
     */
    boolean updateMenu(DMenu menu);

    /**
     * 添加菜单
     * @param menu
     * @return
     */
    boolean addMenu(DMenu menu);

    boolean delete(String id);




    List<Option> getOptions();

    /**
     * 通过用户id 获取用户的菜单
     * @param
     * @return
     */
    List<TreeNode> getMenuTree(String query,String id);
}
